package com.briup.day12;

/**
 * @author ThinkBook
 */
public class Test06_Override {
    public static void main(String[] args) {
        Employee employee = new Employee("008","larry");
        employee.sFunction();
    }
    public static void main01(String[] args) {
//父类对象 调用 doWork方法
        Employee e = new Employee("008", "larry");
        e.doWork();
        System.out.println("------------");
//程序员子类对象 调用 重写方法
        Programmer p = new Programmer("010", "kevin", "初级");
        p.doWork();
        System.out.println("------------");
//经理子类 调用 重写方法
        Manager m = new Manager("006", "robin", 201.5);
        m.doWork();
    }

}
